package com.mlk.repair.po;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mlk.core.constants.Constant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;

/**
 * @author trekxu
 * @since 2019-07-12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EngRepairTicket implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * openId
     */
    private String openId;

    /**
     * 报备单的唯一标识
     */
    private String ticketId;
    /**
     * 用户姓名
     */
    @NotBlank(message = "姓名不能为空")
    private String name;
    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空")
    private String phone;
    /**
     * 地址信息
     */
    @NotBlank(message = "地址信息不能为空")
    private String address;

    /**
     * 备案的状态
     */
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = Constant.DATE_TIME_FORMAT)
    private Date createTime;

    /**
     * 接收时间
     */
    @JsonFormat(pattern = Constant.DATE_TIME_FORMAT)
    private Date handleTime;

    /**
     * 接收的备注信息
     */
    private String handleRemark;

    /**
     * 处理完成的备注信息
     */
    private String finishRemark;
}
